/**
 * @author yxw
 * date : 2014年2月12日 下午5:42:40 
 */
package com.tzinfo.tzb.domain;

import java.util.List;

public class ForumthreadList {
	public static ForumthreadList dao = null;

	private boolean success;
	private String msg;
	private List<ForumthreadData> data;

	public boolean isSuccess() {
		return success;
	}

	public void setSuccess(boolean success) {
		this.success = success;
	}

	public String getMsg() {
		return msg;
	}

	public void setMsg(String msg) {
		this.msg = msg;
	}

	public List<ForumthreadData> getData() {
		return data;
	}

	public void setData(List<ForumthreadData> data) {
		this.data = data;
	}

	public static class ForumthreadData {
		private int tid;
		private int fid;
		private String subject;
		private String dateline;
		private String lastpost;
		private int views;
		private int replies;
		private List<Attachment> attachment;

		public static class Attachment {
			private int aid;
			private String attachment;

			public int getAid() {
				return aid;
			}

			public void setAid(int aid) {
				this.aid = aid;
			}

			public String getAttachment() {
				return attachment;
			}

			public void setAttachment(String attachment) {
				this.attachment = attachment;
			}

			@Override
			public String toString() {
				return "Attachment [aid=" + aid + ", attachment=" + attachment
						+ "]";
			}
		}

		private Userinfo userinfo;

		public int getTid() {
			return tid;
		}

		public void setTid(int tid) {
			this.tid = tid;
		}

		public int getFid() {
			return fid;
		}

		public void setFid(int fid) {
			this.fid = fid;
		}

		public String getSubject() {
			return subject;
		}

		public void setSubject(String subject) {
			this.subject = subject;
		}

		public String getDateline() {
			return dateline;
		}

		public void setDateline(String dateline) {
			this.dateline = dateline;
		}

		public String getLastpost() {
			return lastpost;
		}

		public void setLastpost(String lastpost) {
			this.lastpost = lastpost;
		}

		public int getViews() {
			return views;
		}

		public void setViews(int views) {
			this.views = views;
		}

		public int getReplies() {
			return replies;
		}

		public void setReplies(int replies) {
			this.replies = replies;
		}

		public Userinfo getUserinfo() {
			return userinfo;
		}

		public void setUserinfo(Userinfo userinfo) {
			this.userinfo = userinfo;
		}

		public List<Attachment> getAttachment() {
			return attachment;
		}

		public void setAttachment(List<Attachment> attachment) {
			this.attachment = attachment;
		}

		public static class Userinfo {
			private int uid;
			private String username;
			private String netname;
			private String userstate;
			private String bbbirthday;
			private String bbsex;
			private int credits;
			private String regdate;
			private String avatar;

			public int getUid() {
				return uid;
			}

			public void setUid(int uid) {
				this.uid = uid;
			}

			public String getUsername() {
				return username;
			}

			public void setUsername(String username) {
				this.username = username;
			}

			public int getCredits() {
				return credits;
			}

			public void setCredits(int credits) {
				this.credits = credits;
			}

			public String getRegdate() {
				return regdate;
			}

			public void setRegdate(String regdate) {
				this.regdate = regdate;
			}

			public String getAvatar() {
				return avatar;
			}

			public void setAvatar(String avatar) {
				this.avatar = avatar;
			}

			public String getNetname() {
				return netname;
			}

			public void setNetname(String netname) {
				this.netname = netname;
			}

			public String getUserstate() {
				return userstate;
			}

			public void setUserstate(String userstate) {
				this.userstate = userstate;
			}

			public String getBbbirthday() {
				return bbbirthday;
			}

			public void setBbbirthday(String bbbirthday) {
				this.bbbirthday = bbbirthday;
			}

			public String getBbsex() {
				return bbsex;
			}

			public void setBbsex(String bbsex) {
				this.bbsex = bbsex;
			}

			@Override
			public String toString() {
				return "Userinfo [uid=" + uid + ", username=" + username
						+ ", netname=" + netname + ", userstate=" + userstate
						+ ", bbbirthday=" + bbbirthday + ", bbsex=" + bbsex
						+ ", credits=" + credits + ", regdate=" + regdate
						+ ", avatar=" + avatar + "]";
			}
		}

		@Override
		public String toString() {
			return "ForumthreadData [tid=" + tid + ", fid=" + fid
					+ ", subject=" + subject + ", dateline=" + dateline
					+ ", lastpost=" + lastpost + ", views=" + views
					+ ", replies=" + replies + ", attachment=" + attachment
					+ ", userinfo=" + userinfo + "]";
		}
	}

	@Override
	public String toString() {
		return "ForumthreadList [success=" + success + ", msg=" + msg
				+ ", data=" + data + "]";
	}
}
